package com.example.hissys.mapper;

import com.example.hissys.entity.Feedback;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface FeedbackMapper {
    /**
     * 创建反馈
     */
    @Insert("INSERT INTO feedback (user_id, content, phone) VALUES (#{userId}, #{content}, #{phone})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int create(Feedback feedback);
} 